import {request} from "../../request";

export function getInventoryById(id){
    return request({
        url:`/lswms/inventory/${id}`,
        method:'get'
    })
}


export function getInventoryList(data){
    return request({
        url:'/lswms/inventory/page',
        method:'get',
        params:data
    })
}

export function getInventoryListByData(data){
    return request({
        url:'/lswms/inventory/byData',
        method:'get',
        params:data
    })
}

export function putInventory(data){
    return request({
        url:'/lswms/inventory',
        method:'put',
        data:data
    })
}
export function postInventory(data){
    return request({
        url:'/lswms/inventory',
        method:'post',
        data:data
    })
}

export function deleteInventory(data){
    return request({
        url:`/lswms/inventory`,
        method:'delete',
        data:data
    })
}
export function exportInventory(data){
    return request({
        url:`/lswms/inventory/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}
export function detections(data){
    return request({
        url:'/lswms/inventory/jiance',
        method:'post',
        data:data
    })
}

export function transferTray(data){
    return request({
        url:'/lswms/inventory/transferTray',
        method:'post',
        data:data
    })
}